package com.wva.common.domain.dto;

import com.wva.common.constant.PatternConst;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;

@Data
public class SmsCaptchaVerifyDTO {
    @NotEmpty(message = "请输入手机号")
    @Pattern(regexp = PatternConst.PHONE, message = "手机号格式不正确")
    String phone;

    @NotEmpty(message = "验证码不能为空")
    String code;
}
